﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Drawing;
namespace BanVeXemPhim_Presentation
{
    public class PhimDTO
    {
        private int _idPhim;
        private string _tenPhim;
        private int _theLoai;
        private string _daoDien;
        private int _doDai;
        private string _hang;  // Hãng
        private string _nuocSanXuat;
        private DateTime _ngayKhoiChieu;
        private DateTime _ngayKetThuc;
        private byte[] _dataHinh;

        public int IdPhim
        {
            get { return _idPhim; }
            set { _idPhim = value; }
        }

        public string TenPhim
        {
            get { return _tenPhim; }
            set { _tenPhim = value; }
        }

        public int TheLoai
        {
            get { return _theLoai; }
            set { _theLoai = value; }
        }

        public string DaoDien
        {
            get { return _daoDien; }
            set { _daoDien = value; }
        }

        public int DoDai
        {
            get { return _doDai; }
            set { _doDai = value; }
        }

        public string Hang
        {
            get { return _hang; }
            set { _hang = value; }
        }

        public string NuocSanXuat
        {
            get { return _nuocSanXuat; }
            set { _nuocSanXuat = value; }
        }

        public DateTime NgayKhoiChieu
        {
            get { return Convert.ToDateTime(_ngayKhoiChieu.ToShortDateString()); }
            set { _ngayKhoiChieu = value; }
            //get { return _ngayKhoiChieu; }
            //set { _ngayKhoiChieu = value; }
        }

        public DateTime NgayKetThuc
        {
            get { return Convert.ToDateTime(_ngayKetThuc.ToShortDateString()); }
            set { _ngayKetThuc =value; }
        }

        public byte[] DataHinh
        {
            get { return _dataHinh; }
            set { _dataHinh = value; }
        }
    }
}
